<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>天猫精灵授权</title>

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">

    <!-- Styles -->
    <style>
        html, body {
            background-color: #fff;
            color: #636b6f;
            font-family: 'Raleway', sans-serif;
            font-weight: 100;
            height: 100vh;
            margin: 0;
        }

        .full-height {
            height: 100vh;
        }

        .flex-center {
            align-items: center;
            display: flex;
            justify-content: center;
        }

        .position-ref {
            position: relative;
        }

        .top-right {
            position: absolute;
            right: 10px;
            top: 18px;
        }

        .content {
            text-align: center;
        }

        .title {
            font-size: 84px;
        }

        .links > a {
            color: #636b6f;
            padding: 0 25px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: .1rem;
            text-decoration: none;
            text-transform: uppercase;
        }

        .m-b-md {
            margin-bottom: 30px;
        }
    </style>


    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script>
        $(document).ready(function () {
            $('#submit_btn').on('click', function () {
                var phone = $('#phone').val();
                var password = $('#password').val();
                $.post('/oauth/token', {
                    'username': phone,
                    'password': password,
                    'grant_type': 'password',
                    'client_id': '1',
                    'client_secret': '2nnogxguoZobxmFUK269GdNc3UMcrFTTbOP3B5hd'
                }, function (json) {
                    console.log('json');
                }, 'json')
            })
        })
    </script>

</head>
<body>
<div class="flex-center position-ref ">
    <form id="login_form" method="post">
        <div class="form-group">
            <label for="j_username" class="t">账号：</label>
            <input id="phone" value="" name="phone" type="text" class="form-control x319 in" autocomplete="off">
        </div>
        <div class="form-group">
            <label for="j_password" class="t">密　码：</label>
            <input id="password" value="" name="password" type="password" class="password form-control x319 in">
        </div>
    </form>
</div>
<div class="form-group space flex-center">
    <button type="button" id="submit_btn" class="btn btn-primary btn-lg">&nbsp;登&nbsp;录&nbsp</button>
</div>

</form>
</div>
</body>

</html>
